#ifndef CPOLYGON_H
#define CPOLYGON_H

#include "CEntity.h"

class CPolygon : public CEntity
{
public:

	CPolygon();
	~CPolygon();

	void Render();
	void AddVector( int count = 1 );
	void SetBoundingBox();
	bool InBoundingBox( CEntity* object );

	void SetInsideOut( bool isInsideOut ) { InsideOut = isInsideOut; }

	Vector2d* Polygon; //array of 2d vectors
	int NumVectors;
	Vector2d Min;
	Vector2d Max;
	bool InsideOut;

};


#endif